package com.example.practice.guidance;

import androidx.appcompat.app.AppCompatActivity;

import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;

import com.example.practice.R;

public class SetPort extends AppCompatActivity {

    private EditText ED_PortPath;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_set_port);
        ED_PortPath = findViewById(R.id.ED_PortPath);
    }

    public void savePath(View view){
        SharedPreferences.Editor editor = getSharedPreferences("IpPort",MODE_PRIVATE).edit();
        editor.putString("PortPath",ED_PortPath.getText().toString());
        editor.apply();
    }
}